package com.qfedu.tantu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qfedu.tantu.dto.TileDto;
import com.qfedu.tantu.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Description:
 * @Author: 赵金帅
 * @Date: 2022/06/29/17:41
 */
public interface UserDao extends BaseMapper<User> {
    //修改
    @Update("update t_user set password=#{pass} where phone=#{phone}")
    int updatePass(@Param("phone") String phone, @Param("pass") String pass);

    //查询gsz
    @Select("select headportrait from t_user where name=#{name}")
    String query(String name);
}
